package com.ews.onlineexchange.controller;

import javax.enterprise.context.ConversationScoped;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;

import com.ews.onlineexchange.dao.AgentServiceDao;
import com.ews.onlineexchange.model.AgentService;
import com.ews.onlineexchange.model.DataEntity;
import com.ews.onlineexchange.model.Notification;
import com.ews.onlineexchange.service.EntityHome;

@Named
@ConversationScoped
public class NotificationHome extends EntityHome<Notification, String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Override
	public String delete() {
		getInstance().setDelFlag(DataEntity.DEL_FLAG_DELETE);
		return super.saveAndFlush();
	}

	
	
	
}
